<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://zuche.com/jsp/jstl/uaa-taglib" prefix="uaa"%>
<%@ page import="com.zuche.framework.dao.util.DictModel" %>
<%

    String path = request.getContextPath();

    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>支付平台演示项目</title>
    <script src="<%=basePath%>heatmap/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        var _hm = _hm || {};
        _hm.align = 'center';
        _hm.contentWidth = function(){
            //return $('body>header').width();
            return $('body').width();
        }
    </script>
    <script src="<%=basePath%>heatmap/jquery.cookie.js" type="text/javascript"></script>
    <script src="<%=basePath%>heatmap/heatmap.jsp" type="text/javascript"></script>
</head>
<body>

<a href="kuqianIndex.jsp" target="_blank">快钱测试页面</a> <a href="yeepay.jsp" target="_blank">易宝测试页面</a>
<a href="easylink.jsp" target="_blank">易联测试页面</a> <a href="openApi.jsp" target="_blank">openapi测试页面</a>
<br/>
<br/>
<form action="<%=basePath%>testMvcMode.do_" method="get"  target="_blank">
    页面正式支付<input type="radio" name="isTest" value="false" checked>
    页面测试支付<input type="radio" name="isTest" value="true"><br/>
    金额:		<input type="text" name="money" value="0.01"/><br/>
    银行:		<select name="sourceId">
    <option value="ICBC">工行</option>
    <option value="ABC">农行</option>
    <option value="CCB">建行</option>
    <option value="BOC">中国银行</option>
    <option value="BCOM">中国交通银行</option>
    <option value="CMB">招行</option>
    <option value="POST">中国邮政</option>
    <option value="BOB">北京银行</option>
    <option value="CBHB">渤海银行</option>
    <option value="BJRCB">北京农商银行</option>
    <option value="SRCB">上海农村商业银行</option>
    <option value="SPDB">浦发银行</option>
    <option value="NJCB">南京银行</option>
    <option value="CEB">中国光大银行</option>
    <option value="CMBC">中国民生银行</option>
    <option value="BEA">东亚银行</option>
    <option value="SDB">深圳发展银行</option>
    <option value="NBCB">宁波银行</option>
    <option value="GDB">广东发展银行</option>
    <option value="HZB">杭州银行</option>
    <option value="CITIC">中信银行</option>
    <option value="PAB">平安银行</option>
    <option value="HXB">华夏银行</option>
    <option value="HSB">徽商银行</option>
    <option value="CIB">兴业银行</option>
    <option value="ABC">浙商银行</option>
    <option value="SHB">上海银行</option>
    <option value="GZCB">广州银行</option>
    <option value="p_UPOP">银联平台</option>
    <option value="p_kuaiqian">快钱平台</option>
    <option value="p_alipay">支付宝平台</option>
    <option value="p_tenpay">财付通平台</option>
    <option value="WECHAT">微信</option>
    <option value="p_alipay_m">支付宝平台手机</option>
</select><br/>
    <input type="submit" value="提交"/>
</form>
<br/>


<form method="post" id="eposForm"  target="_blank">
    公共信息:<select name="sysGroup" ><option value="0">租车账户</option><option value="1">专车账户</option></select>
    <br/><br/>
    <a onclick="eposSubmit('<%=basePath%>testEposPay.do_')" href="javascript:void(0);">信用卡支付</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testPayRefund.do_')" href="javascript:void(0);">信用卡支付退款</a>
        流水号：<input type="text" name="refundId"/>金额：<input type="text" name="money"/><br/>
    <a onclick="eposSubmit('<%=basePath%>testPayCancel.do_')" href="javascript:void(0);">信用卡支付撤单</a><input type="text" name="cancelId"/><br/>
    <a onclick="eposSubmit('<%=basePath%>testPCIQuery.do_')" href="javascript:void(0);">PCI查询</a>
    <input type="text" name="pciPayerId" value="5125392"/>
    <select name="pciSysGroup" ><option value="0">租车账户</option><option value="1">专车账户</option></select>
    <select name="pciCardType" ><option value="1">信用卡</option><option value="2">储蓄卡</option></select>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testPCIDel.do_')" href="javascript:void(0);">PCI删除（解绑快钱）</a>
    <input type="text" name="pciDPayerId" value="5125392"/>
    卡号：<input type="text" name="pciDCardNo"/>
    银行简称：<input type="text" name="pciDSourceId"/>
    <select name="pciDSysGroup" ><option value="0">租车账户</option><option value="1">专车账户</option></select>
    <br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testAuthFreeze.do_')" href="javascript:void(0);">信用卡预授权冻结</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testAuthConfirm.do_')" href="javascript:void(0);">信用卡预授权完成</a><input type="text" name="authConfirmId"/><br/>
    <a onclick="eposSubmit('<%=basePath%>testAuthCancel.do_')" href="javascript:void(0);">信用卡预授权撤单</a>
    <input type="text" name="authCancelId" style='width:800px'/><br/>
    <a onclick="eposSubmit('<%=basePath%>testAuthConfCancel.do_')" href="javascript:void(0);">信用卡预授权完成撤单</a><input type="text" name="authConfCancelId"/><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryWebSupport.do_')" href="javascript:void(0);">网银支持列表查询</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryEposSupport.do_')" href="javascript:void(0);">无卡支付支持列表查询</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryOrder.do_')" href="javascript:void(0);">订单详情查询</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryOper.do_')" href="javascript:void(0);">流水号查询</a><input type="text" name="queryId"/><br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryCardInfo.do_')" href="javascript:void(0);">卡信息查询</a>
    <input type="text" name="cardno"/>
    是否查询支持渠道
    <select name="isQuerySupport" ><option value="0">否</option><option value="1">是</option></select><br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryZhimaScore.do_')" href="javascript:void(0);">芝麻信用分数查询</a><input type="text" name="token"/><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testCreateNo.do_')" href="javascript:void(0);">创建交易流水</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testCompleteInfo.do_')" href="javascript:void(0);">完善交易流水</a><input type="text" name="uniqueId"/><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testcreateNoSms.do_')" href="javascript:void(0);">信用卡发短信</a>

    <br/>
    <a onclick="eposSubmit('<%=basePath%>testcreateNoSms2.do_')" href="javascript:void(0);">储蓄卡发短信</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testunbindCreditCard.do_')" href="javascript:void(0);">解绑信用卡</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testEposPaySms.do_')" href="javascript:void(0);">首次快捷支付</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testEposPaySms2.do_')" href="javascript:void(0);">二次快捷支付</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testEposPaySms3.do_')" href="javascript:void(0);">储蓄卡首次快捷支付</a><br/>


    <a onclick="eposSubmit('<%=basePath%>testQuickPaySms2.do_')" href="javascript:void(0);">快捷再次支付短信</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testEposSecQuickPay.do_')" href="javascript:void(0);">快捷再次支付</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testBankDrawing.do_')" href="javascript:void(0);">提现</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testDrawQuery.do_')" href="javascript:void(0);">提现查询</a><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testWechat.do_')" href="javascript:void(0);">微信APP支付</a>
    <a onclick="eposSubmit('<%=basePath%>testNative.do_')" href="javascript:void(0);">微信NATIVE支付</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testRemote.do_')" href="javascript:void(0);">测试远程服务</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testRemotePage.do_')" href="javascript:void(0);">测试分页远程服务</a><br/>
    <br/>
    <a href="httpTest.jsp?type=BankProtocol99BillSearch">快钱查询</a><br/>
    <a href="httpTest.jsp?type=BankProtocol99BillSend">快钱发送</a><br/>
    <a href="httpTest.jsp?type=BankProtocolLakalaSearch">拉卡拉查询</a><br/>
    <a href="httpTest.jsp?type=BankProtocolLakalaSend">拉卡拉发送</a><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testEposYeePay.do_')" href="javascript:void(0);">易宝支付</a><br/>
    <a onclick="eposSubmit('<%=basePath%>testPayRefund.do_')" href="javascript:void(0);">易宝支付退款</a><input type="text" name="refundId"/><br/>
    <a onclick="eposSubmit('<%=basePath%>testPayCancel.do_')" href="javascript:void(0);">易宝支付撤单</a><input type="text" name="cancelId"/><br/>
    <br/>

    <a onclick="eposSubmit('<%=basePath%>BankProtocolLakalaSearch1.do_')" href="javascript:void(0);">测试短租结算远程服务</a><br/>
    <a onclick="eposSubmit('<%=basePath%>BankProtocolLakalaSearch2.do_')" href="javascript:void(0);">测试短租财务对账远程服务</a><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>AliDirectPay.do_')" href="javascript:void(0);">测试支付宝接口支付</a><br/>
    <br/>
    <a onclick="eposSubmit('<%=basePath%>testQueryBind.do_')" href="javascript:void(0);">查询绑卡接口</a><br/>
    <br/>
</form>
<div>
    <h1>注意:</h1>
    <p style="color:red;font-size: 25;font-weight: bold;">DEMO项目使用时,请先修改setting.properties中配置的项目部署地址,勿使用localhost.</p>
</div>

<script type="text/javascript">
    function eposSubmit(url){
        document.getElementById("eposForm").setAttribute("action", url);
        document.getElementById("eposForm").submit();
    }

    function click(){
        alert(document.getElementById("a").value);
    }
</script>

<%
    List<DictModel> list = new ArrayList<DictModel>();
    DictModel d = new DictModel();
    d.setDictCode("1");
    d.setDictName("liqingyuan");
    DictModel d2 = new DictModel();
    d2.setDictCode("2");
    d2.setDictName("liqingyuan2");
    list.add(d);list.add(d2);
    request.setAttribute("list", list);
%>
<uaa:multipleSelect id="a" dataListName="list" name="b" onConfirm="click()"/>

</body>
</html>
